package TestStruct

// -------多对多的关系many2many----------------------------------
// 学生表
type Student struct {
	SId    int `gorm:"primary_key"`
	SNo    int
	Name   string
	Sex    string
	Age    int
	Course []Course `gorm:"many2many:Student2Course"`
}

// 课程表
type Course struct {
	CId         int `gorm:"primary_key"`
	CName       string
	TeacherName string
	Room        string
}
